package com.wnxy.sddfp.system.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author yellow Docter
 * @date 2024 -04-15
 * @desc
 */
@Configuration
public class PWDConfig {

    /**
     *   PasswordEncoder 加密接口 (很多实现)
     *           BCryptPasswordEncoder ( 加密算法的具体实现 )
     * @return
     */
    @Bean
    public PasswordEncoder passwordEncoder(){
        return new BCryptPasswordEncoder();
    }

}
